﻿@model List<FO.Models.SpeFolder>
@foreach (var directory in Model)
{
    if (directory.hasFiles)
    {
    <li @(directory.hasFiles ? "class=closed" : "") ><span onclick="return ajaxRtree(this);" class="folder" rel="Content/@Url.Content(directory.Name)">@directory.Name</span>
        <ul>
            <li><span class="folder">Loadding...</span></li>
        </ul>
    </li>
    }
    else
    { 
    <li><span class="folder" onclick="return ajaxRtree(this);" rel="Content/@Url.Content(directory.Name)">@directory.Name</span></li>
    }
}